package com.twu.biblioteca.models.entities;

import com.twu.biblioteca.config.Rate;
import com.twu.biblioteca.models.entities.LibaryResource;

public class Movie extends LibaryResource {
    private String name;
    private String director;
    private long year;
    private Rate rate;

    public Movie(String name, String director, long year, Rate rate) {
        this.name = name;
        this.director = director;
        this.year = year;
        this.rate = rate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getYear() {
        return year;
    }

    public void setYear(long year) {
        this.year = year;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public Rate getRate() {
        return rate;
    }

    public void setRate(Rate rate) {
        this.rate = rate;
    }

}
